<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[update_uid]" value="{:$auth->id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('密级')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type_id" data-rule="" data-source='department/type/selectpage' class="form-control selectpage" name="row[type_id]" type="text" value="{$row.type_id|htmlentities}" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('部门')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[department_id]" data-rule="" id="c-department_id" class="form-control">
                <option value="0"> </option>
                {foreach name="departmentList" item="vo"}
                <option value="{$vo.id}"
                {if $vo.id==$row.department_id} selected{/if}>
                {$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('职务')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-position_id" data-rule="" data-source='{$positionList}' class="form-control selectpage" name="row[position_id]" type="text" value="{$row.position_id|htmlentities}" />-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-grouping_id" class="control-label col-xs-12 col-sm-2">{:__('组别')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-grouping_id" data-rule="" data-source='{$groupingList}' class="form-control selectpage" name="row[grouping_id]" type="text" value="{$row.grouping_id|htmlentities}" data-pagination="true" data-page-size="10"/>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-author" class="control-label col-xs-12 col-sm-2">{:__('作者')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-author" data-rule="required" data-source='{$userList}'  data-field="nickname" data-params='{"ids":"{$row.id}"}' class="form-control selectpage" name="row[author]" data-multiple="true" type="text" value="{$row.author|htmlentities}"/>-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label for="c-first_author" class="control-label col-xs-12 col-sm-2">{:__('负责人')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-first_author" data-rule="required" data-source='{$userList}'  data-field="nickname" data-params='{"ids":"{$row.id}"}' class="form-control selectpage" name="row[first_author]" type="text" value="{$row.first_author|htmlentities}"/>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control"  name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-title2" class="control-label col-xs-12 col-sm-2">{:__('小标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title2" data-rule="" class="form-control" name="row[title2]" type="text" value="{$row.title2|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label for="c-introduction" class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-introduction" data-rule="required" class="form-control" name="row[introduction]" type="text" value="{$row.introduction|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="c-source" class="control-label col-xs-12 col-sm-2">{:__('来源')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-source" data-rule="required" class="form-control" name="row[source]" type="text" value="{$row.source|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-direction" class="control-label col-xs-12 col-sm-2">{:__('方向')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-direction" data-rule="required" class="form-control" name="row[direction]" type="text" value="{$row.direction|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-territory" class="control-label col-xs-12 col-sm-2">{:__('领域')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-territory" data-rule="required" class="form-control" name="row[territory]" type="text" value="{$row.territory|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-parent_project" class="control-label col-xs-12 col-sm-2">{:__('母项目')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parent_project" data-rule="" class="form-control" name="row[parent_project]" type="text" value="{$row.parent_project|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">{:__('关键词')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-keywords" data-rule="" class="form-control" name="row[keywords]" type="text" value="{$row.keywords|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-auth_department" class="control-label col-xs-12 col-sm-2">{:__('作者部门')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-auth_department" data-rule="" class="form-control" name="row[auth_department]" type="text" value="{$row.auth_department|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" name="row[content]">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
